package k.daimai.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.security.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 大麦商城-商品表-73
 * </p>
 *
 * @author k
 * @since 2025-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dm_product")
@ApiModel(value="DmProduct对象", description="大麦商城-商品表-73")
public class DmProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号, 自增列")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    private String pname;

    @ApiModelProperty(value = "市场价")
    private Double marketPrice;

    @ApiModelProperty(value = "商城价")
    private Double shopPrice;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品描述")
    private String pdesc;

    @ApiModelProperty(value = "库存数量")
    private Integer store;

    @ApiModelProperty(value = "热销商品")
    private Integer isHot;

    @ApiModelProperty(value = "创建时间")
    private Timestamp createtime;

    @ApiModelProperty(value = "分类id 关联 dm_category.id")
    private Integer cid;

    @ApiModelProperty(value = "数量 关联 dm_category.nums")
    private Integer nums;


}
